package com.sunday.scoremanager.ui;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.sunday.common.base.BaseActivity;
import com.sunday.scoremanager.R;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by 刘涛 on 2017/10/30.
 */

public class LoginActivity extends BaseActivity {

    @Bind(R.id.boss_login)
    TextView bossLogin;
    @Bind(R.id.staff_login)
    TextView staffLogin;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_login);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.boss_login,R.id.staff_login})
    void onClick(View v){
        switch (v.getId()){
            case R.id.boss_login:
                intent=new Intent(mContext,BossLoginActivity.class);
                startActivity(intent);
                break;
            case R.id.staff_login:
                intent=new Intent(mContext,StaffLoginActivity.class);
                startActivity(intent);
                break;
        }
    }
}
